package com.manong.service;

import com.github.pagehelper.PageInfo;
import com.manong.domain.Employee;
import com.manong.query.QueryObject;
import com.manong.vo.AdminVo;
import com.manong.vo.EmployeeRoleVo;

import java.util.List;

public interface IEmployeeService {
    void save(EmployeeRoleVo employeeRoleVo);
    void update(EmployeeRoleVo employeeRoleVo);
    void delete(Long id);
    Employee get(Long id);
    List<Employee> getAll();
    PageInfo query(QueryObject qo);

    void saveOrUpdate(EmployeeRoleVo employeeRoleVo);

    void updateState(AdminVo adminVo);

    Employee login(String username, String password);
}
